<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<title>宅小U后台管理系统</title>
<jsp:include page="inc/meta.jsp"></jsp:include>
<jsp:include page="inc/easyui.jsp"></jsp:include>
</head>
<body id="indexLayout" class="easyui-layout" fit="true">
	<c:if test="${mgr.username == null}">
		<script type="text/javascript">
			$(function() {
				$.messager.alert("提示", "会话已经过期，请重新登录！", "info");
				window.location.href = "login.jsp";
			});
		</script>
	</c:if>

	<div region="north" href="north" style="height:60px;overflow: hidden;"></div>
	<div region="west" href="west" title="导航" split="false"
		style="width:200px;overflow: hidden;"></div>
	<div region="center" href="center" id="center"
		title="[${mgr.username }]," style="overflow: hidden;"></div>
	<!-- 
	<div region="south" href="south" style="height:35px;overflow: hidden;"></div>
	 -->
	<script type="text/javascript">
		$(function() {
			var week;
			if (new Date().getDay() == 0)
				week = "星期日";
			if (new Date().getDay() == 1)
				week = "星期一";
			if (new Date().getDay() == 2)
				week = "星期二";
			if (new Date().getDay() == 3)
				week = "星期三";
			if (new Date().getDay() == 4)
				week = "星期四";
			if (new Date().getDay() == 5)
				week = "星期五";
			if (new Date().getDay() == 6)
				week = "星期六";

			var date = "今天是：" + new Date().getFullYear() + "年"
					+ (new Date().getMonth() + 1) + "月" + new Date().getDate()
					+ "日 " + week;
			var options = $("#center").panel("options");
			$("#center").panel("setTitle", options["title"] + date);
		});
	</script>
</body>
</html>